/*
 * @Author: Villlee 15388605742@163.com
 * @Date: 2025-08-18 23:12:59
 * @LastEditors: Villlee 15388605742@163.com
 * @LastEditTime: 2025-08-27 21:29:39
 * @FilePath: /node-react-vite/frontend/src/main.tsx
 * @Description:
 *
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved.
 */
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import "@ant-design/v5-patch-for-react-19";
import "./index.css";
import App from "./App.tsx";
import ErrorBoundary from "./components/ErrorBoundary.tsx";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <ErrorBoundary>
      <BrowserRouter
        future={{ v7_startTransition: true, v7_relativeSplatPath: true }}
      >
        <App />
      </BrowserRouter>
    </ErrorBoundary>
  </StrictMode>
);
